'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/me', controller.home.me);
  router.post('/me', controller.home.me);
  router.get('/font/gen', controller.font.gen_font);
  router.get('/font/gen/desc', controller.font.desc);
  router.post('/font/gen', controller.font.gen_font);
  router.get('/upload', controller.font.upload_to_qiniu);
};
